<?php
// use services\login\LoginService;

class LoginController extends BaseController
{
	/**
	 * 展示登陆页面
	 * @Author   Leikes
	 * @DateTime 2016-01-28T09:38:35+0800
	 * @return   view                   登陆页面
	 */
	public function showView()
	{
		return View::make('user.login');
	}
	
	/**
	 * 登陆检测
	 * @Author   Leikes
	 * @DateTime 2016-01-23T16:40:59+0800
	 * @return   json                   ['code','message']
	 */
	public function receiveValue()
	{
		$email      =Input::get('email');
		$password   =Input::get('password');
		
		$loginCheck =new LoginService;
		$errorInfo  =$loginCheck->loginCheck($email,$password);
		
		return Response::json($errorInfo);
	}
}
?>